<?php
/* @var $this ResourcesController */

$this->breadcrumbs=array(
	'Resources',
);
?>

<div class="padding-2">
    <div class="container_24">
        <div class="wrapper">
        	<article class="grid_8">
            	<div class="box title0">
                	<div class="box-padding8">
                    	<h5 class="p2">Get a Free Moving Quote</h5>
                        <form id="form-5" class="jqTransform" method="post" enctype="multipart/form-data">                    
                            <fieldset>
                                <div class="wrapper">
                                    <div class="rows">
                                        <span class="text-form">Select move type</span>
                                        <div class="width-2">
                                            <select>
                                                <option>By hand</option>
                                                <option>By truck</option>
                                                <option>By airplane</option>
                                            </select>
                                        </div>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="rows-1">
                                        <span class="text-form">Move size</span>
                                        <div class="width-2">
                                            <select>
                                                <option>120</option>
                                                <option>120</option>
                                                <option>120</option>
                                            </select>
                                        </div>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="rows">
                                        <span class="text-form">Move date</span>
                                        <div class="width-5 spacing-7">
                                            <select>
                                            	<?php for($i = 1; $i <= 31; $i ++): ?>
	                                                <option><?php echo $i; ?></option>
	                                            <?php endfor; ?>
                                            </select>
                                        </div>
                                        <div class="width-5 spacing-7">
                                            <select>
                                                <?php for($i = 1; $i <= 12; $i ++): ?>
	                                                <option><?php echo $i; ?></option>
	                                            <?php endfor; ?>
                                            </select>
                                        </div>
                                        <div class="width-5">
                                            <select>
                                                <?php for($i = 2013; $i <= 2020; $i ++): ?>
	                                                <option><?php echo $i; ?></option>
	                                            <?php endfor; ?>
                                            </select>
                                        </div>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="rows-1">
                                        <span class="text-form">Move from</span>
                                        <div class="width-2">
                                            <select>
                                                <option>Ho Chi Minh City</option>
                                                <option>Ha Noi Capital</option>
                                                <option>Nha Trang City</option>
                                                <option>Da Nang City</option>
                                            </select>
                                        </div>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="buttons-1">
                                         <a class="button-1" href="index-5.html#" onClick="document.getElementById('form-5').submit()"><span class="txt">Get a quote</span></a>
                                    </div>
                                </div>
                            </fieldset>					
                       </form>
                    </div>
                </div>
                <h2 class="border-bot p2">Useful <span>Info</span></h2>
                <div class="wrapper">
                	<div class="col-padding">
                        <p class="p0000 l-h2">
                        	<strong class="color-5">Quisque diam lorem, interdum vitae, dapibus<br> ac, scelerisque vitae, pede.</strong>
                        </p>
                        <p>
                        	Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum
                            sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. 
                        </p>
                        <p class="indent-bot">
							Fusce feugiat malesuada odio. Morbi nunc odio, gravida at, cursus nec, luctus a, lorem. Maecenas tristique orci ac sem.
                            Duis ultricies pharetra magna. Donec accumsan malesuada orci. 
                        </p>
                        <a class="link-1" href="more.html">Read more</a>
                    </div>
                </div>
            </article>
            <article class="grid_16">
                <div class="box-1 title0">
                    <div class="box-padding4">
                    	<?php $first_post = $posts[0]; ?>
                        <h1 class="p000">Helpful Tips When Moving House</h1>
                        <div class="rel img-indent6"><a class="lightbox-image hover" href="<?php echo Yii::app()->theme->baseUrl ?>/images/slide-20.jpg" data-gal="prettyPhoto" title=""><img class="border" src="<?php echo Yii::app()->theme->baseUrl ?>/images/<?php echo $first_post->image; ?>" alt=""></a><span class="img-shadow-middle"></span></div>
                        <div class="extra-wrap">
                        	<h5><?php echo $first_post->title; ?></h5>
                            <p class="title0">
                            	<?php echo $first_post->content; ?>
                            </p>
                            <ul class="list-2">
                            	<li><a href="more.html">Aenean nec eros. Vestibulum ante ipsum</a></li> 
                                <li><a href="more.html">Primis in faucibus orci luctus et ultrices</a></li>
                                <li><a href="more.html">Suspendisse sollicitudin velit sed leo phare</a></li>
                            </ul>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div> 
                <h2 class="border-bot">Moving <span>Tools &amp; Services</span></h2>
                <div class="padding-left1">
                    <p class="indent-bot1">
                        Fusce suscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. Fusce
                        feugiat malesuada odio. Morbi nunc odio, gravida at, cursus nec, luctus a, lorem. Mae cenas tristique orci ac sem. Duis ultricies
                        pharetra magna. Donec accumsan malesuada orci. 
                    </p>
                    <div class="wrapper">
                    	<div class="col-7 spacing-4">
                    		<?php $limit = ceil(count($posts) / 2); ?>
                    		<?php for($i = 1; $i < $limit; $i ++): ?>
	                        	<div class="wrapper indent-bot">
	                                <div class="img-indent5"><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/<?php echo $posts[$i]->image; ?>" alt=""></div>
	                                <div class="extra-wrap">
	                                    <p class="p0">
	                                        <a class="link-6" href="<?php echo Yii::app()->createAbsoluteUrl('Post/View', array('post_id' => $posts[$i]->id)) ?>"><?php echo $posts[$i]->title; ?></a>
	                                    </p>
	                                    <?php echo $posts[$i]->content; ?>
	                                    <a class="link-5" href="<?php echo Yii::app()->createAbsoluteUrl('Resources/View/',array('post_id' => $posts[$i]->id)) ?>">...</a> 
	                                </div>
	                            </div>
	                        <?php endfor; ?>
                        </div>
                        <div class="col-7">
                        	<?php for($i = $limit; $i < 7; $i ++): ?>
                        	<div class="wrapper indent-bot">
	                                <div class="img-indent5"><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/<?php echo $posts[$i]->image; ?>" alt=""></div>
	                                <div class="extra-wrap">
	                                    <p class="p0">
	                                        <a class="link-6" href="<?php echo Yii::app()->createAbsoluteUrl('Post/View', array('post_id' => $posts[$i]->id)) ?>"><?php echo $posts[$i]->title; ?></a>
	                                    </p>
	                                    <?php echo $posts[$i]->content; ?>
	                                    <a class="link-5" href="<?php echo Yii::app()->createAbsoluteUrl('Resources/View/',array('post_id' => $posts[$i]->id)) ?>">...</a> 
	                                </div>
	                            </div>
	                        <?php endfor; ?>
                            <!-- <div class="wrapper indent-bot">
                                <div class="img-indent5"><img src="images/6page_img6.png" alt=""></div>
                                <div class="extra-wrap">
                                    <p class="p0">
                                       <a class="link-6" href="more.html">Moving Calendar</a>
                                    </p>
                                    Orci ac sem duis ultricies pha<br> retra magna. Donec accumsan malesuada orci. Donec sitamete<br>ros maluada 
                                    <a class="link-5" href="more.html">...</a> 
                                </div>
                            </div>
                            <div class="wrapper">
                                <div class="img-indent5"><img src="images/6page_img7.png" alt=""></div>
                                <div class="extra-wrap">
                                    <p class="p0">
                                       <a class="link-6" href="more.html">After the move</a>
                                    </p>
                                    Duis ultricies pharetra magna.<br> Donec accumsan malesuada orci. Donec sit ameteros maluada at<br> neque vivamus
                                    <a class="link-5" href="more.html">...</a> 
                                </div>
                            </div> -->
                        </div>
                    </div>  
                </div>                         
            </article>
        </div>
    </div>
</div>